package com.commerce.reader.Entity;


import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

import java.io.Serializable;
import java.util.List;


public class Book  extends LitePalSupport implements Serializable {
    private int ids;
    private String name;
    @Column(unique = true)
    private String book;
    private String desc;
    private String time;
    private String imgurl;
    private List<Chapter> map;

    public Book() {
    }

    public Book(int ids, String name, String book, String desc, String time, String imgurl, List<Chapter> map) {
        this.ids = ids;
        this.name = name;
        this.book = book;
        this.desc = desc;
        this.time = time;
        this.imgurl = imgurl;
        this.map = map;
    }

    public int getIds() {
        return ids;
    }

    public void setIds(int ids) {
        this.ids = ids;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBook() {
        return book;
    }

    public void setBook(String book) {
        this.book = book;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public List<Chapter> getMap() {
        return map;
    }

    public void setMap(List<Chapter> map) {
        this.map = map;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = " "+desc;
    }
}
